export class Controller {
  constructor(payload) {
    const { jsonrpc } = payload
    this._jsonrpc = jsonrpc
  }

  async json_call(url, payload = {}, kwargs) {
    return this._jsonrpc.jsoncall(url, payload, kwargs)
  }
}
